package com.lagou.task08;
//上网套餐类


public class InternetPackage extends PhoneCard implements InternetService{
    private double flow;//上网流量
    private int monthlyRate;//每月资费

    public InternetPackage() {
    }

    public InternetPackage(double flow, int monthlyRate) {
        setFlow(flow);
        setMonthlyRate(monthlyRate);
    }

    public double getFlow() {
        return flow;
    }

    public void setFlow(double flow) {
        this.flow = flow;
    }

    public int getMonthlyRate() {
        return monthlyRate;
    }

    public void setMonthlyRate(int monthlyRate) {
        this.monthlyRate = monthlyRate;
    }

    public void show(){
        System.out.println("显示上网类套餐信息");
    }

    //重写InternetService接口
    @Override
    public void showInter(double flow, PhoneCard pc) {
        System.out.println("上网服务接口的实现~");
    }
}
